Custom Commands

Top  Previo  Siguiente

FileMenu Tools lets you configure customized commands which will be added to context menu of the Windows Explorer. There are six command types which let you make specific actions. This actions are:

·Run an external program, whose arguments are the selected elements.
·Copy the selected elements to an specific folder.
·Move the selected elements to an specific folder.
·Delete specific file types into the selected folders.
·Rename the selected files.
·Send the selected elements to mail recipients with specific parameters (e-mail recipients, subject and body).

From the Commands of FileMenu Tools tab of the configuration window you can add new commands, delete commands and change the command properties.

In order to add a new command click Add Command action. The new command will be added to the list and its name will be New Command.

In order to change the properties of a command, you must use the properties panel. There are common properties and specific properties for each command type.

Common Properties

·Action. The action which will be run: run program, copy to a folder, move to a folder, or delete specific files.
·Menu Text. The text which will be displayed in the context menu.
·Icon. The icon which will be displayed in the context menu. If you click the right side button then a dialog box will be displayed  to browse and select the icon.
·Element Types. The command will be displayed only when any selected element in the Windows Explorer belongs to any of these element types. The element types can be files, folders or drives.
·Files: you must specify the file extensions separated with a comma, and if you wish to specify all file types, enter * wildcard.
·Folders: by default the command is displayed with all the folders, but you can specify also specific folders by typing the folders in the "Specific Folder" field. The folders must be separated with semicolons. You can use wildcards (* and ?), and specify both relative paths and absolute paths. For example: if you specify "Temp*", then the command will be displayed only when the selected folder begins with "Temp".
·Drives: you can specify the drive types: fixed drive, removable drive, CD-ROM/DVD-ROM, network drive and RAM disk.
·Other options: by default, all files are displayed when various files are selected, but if you want you can set the "Only an element" option to "Yes" in order to display the command only when an element is selected.
·Modifier Key. The custom command only will be showed in the context menu if this key is pressed while the menu is displaying. The key is any of the following: SHIFT, CONTROL, or WINDOWS. If you set this parameter to "None", then the command always will be displayed in the context menu.

 

Program Properties

·Program. The full path of the program file, or relative path as regards installation folder of FileMenu Tools.
·Arguments. The arguments which must be given to the program. If you don't specify this field, by default, the arguments will be the path of all the selected elements in the Windows Explorer. You can specify various variables which will be replaced with its value when the program runs. In order to insert a variable, click over the right side button and select the variable from the context menu. The possible variables are the following:
·%: no arguments will be given to the program. This behaviour replaces the default behaviour if Arguments field is empty (the path of all the selected elements in the Windows Explorer).
·%DRIVE%: drive letter which is common to the all selected elements.
·%FOLDERPATH%: if only a folder is selected in Windows Explorer, then this variable is this folder, else this variable is the parent folder path which is common to all the selected elements.
·%PARENTPATH%: parent folder path which is common to all the selected elements.
·%FOLDERNAME%: name of the parent folder.
·%RELPATH%: parent folder path without drive.
·%FILEPATHS%: full paths of all the selected elements. This is the default variable if you don't specify any argument.
·%FILENAMES%: names of all the selected elements.
·%FILEPATHn%: full path of the element at position n.
·%FILENAMEn%: name of the element at position n.
·%FILETITLEn%: title (name without extension) of the element at position n.
·%FILEEXTn%: extension of the element at position n.
·%TEMPFILEPATHS%: save the full paths of all the selected elements in a temporary file and the variable will be replaced  with the full path of this temporary file.
·%TEMPFILENAMES%: save the names of all the selected elements in a temporary file and the variable will be replaced  with the full path of this temporary file.
·%TARGET...%: if you add the prefix TARGET to any above variable, then if you select shortcuts in the Windows Explorer, the variable will access to the target files of the shortcuts.
·@Message@: customized variable. The variable value will be requested when the program runs. Message is the text which will be displayed when the value is requested.
·@OPENFILE:Message@: lets you select a file when the program runs. The Open File Dialog will be showed to select the file. Message is the text which will be displayed in the dialog.
·@SAVEFILE:Message@: lets you select a file for save when the program runs. The Save File Dialog will be showed to select the file. Message is the text which will be displayed in the dialog.
·@FOLDER:Message@: lets you select a folder when the program runs. A dialog will be showed to select the folder. Message is the text which will be displayed in the dialog.
·Working Folder. The working folder which the program will be run. You can specify the following variables:
·%DRIVE%: drive letter which is common to the all selected elements.
·%FOLDERPATH%: if only a folder is selected in Windows Explorer, then this variable is this folder, else this variable is the parent folder path which is common to all the selected elements.
·%PARENTPATH%: parent folder which is common to all the selected elements.

 

·Several Instances. Choose "Yes" if a new instance of the program must be run for each selected element. This may be useful for the programs which only support a file as argument.
·Several Instances. Indicates if to run several instances of the external application, one for each selected item in Windows Explorer. This can be useful for programs that support only a filename as parameter. If this parameter is different to "No", then the variables as %FILEPATH1%, %FILENAME1%, etc., take on each new instance of the application executed each of the selected files in Windows Explorer. The possible values ​​may be one of the following:
·No: normal behavior, that is to say, a single instance of the application is run, passing all selected files.
·Simultaneous: all instances of the application are run simultaneously.
·Sequential: each instance of the application is run sequentially, that is to say, an instance of the application only runs the same time, and a new instance only is run when the previous instance is terminated. If you set this value, then you can also set two additional parameters: enter in subfolders and show progress bar.
·Several Instances/Enter in subfolders: only available if "Several Instances" is sequential. If this parameter is set to "Yes", then enters recursively in all selected folders and subfolders and run a new instance of the application for each element within these folders. It will be considered only the elements that are the same type as specified in the general parameter "Element Types".
·Several Instances/Show Progress Bar: only available if "Several Instances" is sequential. If this parameter is set to "Yes", then will display a progress bar during the execution of each of the instances of the application. So it is possible to know at any time how many instances remain to run.
 
·Run As Administrator. Choose "Yes" if the program must be run with administrator privileges. If UAC is enabled, then a dialog box will be displayed to confirm the action.

Copy/Move Properties

·Target Folder. The folder where the selected elements will be copied/moved to. You can include the following variables:
·%DRIVE%: drive letter which is common to the all selected elements.
·%FOLDERPATH%: if only a folder is selected in Windows Explorer, then this variable is this folder, else this variable is the parent folder path which is common to all the selected elements.
·%PARENTPATH%: parent folder path which is common to all the selected elements.
·%FOLDERNAME%: name of the parent folder.
·%RELPATH%: parent folder path without drive.
·%FILEPATHn%: full path of the element at position n.
·%FILENAMEn%: name of the element at position n.
·%FILETITLEn%: title (name without extension) of the element at position n.
·%FILEEXTn%: extension of the element at position n.
·%TARGET...%: if you add the prefix TARGET to any above variable, then if you select shortcuts in the Windows Explorer, the variable will access to the target files of the shortcuts.
·File Types. The file types to copy/move. There are three options: all files, only files match the filters, or only files does not match the filters. If you choose any of last two options, you must specify the file types.
·Overwrite. If checked, when coping/moving an existing file, you will be asked if the file must be overwrited or not.

Delete Properties

·File Types. The file types to delete. There are three options: all files, only files match the filters, or only files does not match the filters. If you choose any of last two options, you must specify the file types.
·Enter in subfolders. If checked, then the delete process will delete recursively in all subfolders that the selected folders contain.
·Move to Recycle Bin. If checked, the files will be moved to recycle bin and will be not deleted.

Rename Properties

·Profile Name. Profile name of "Advanced Renamer" tool to be used when renaming.
·Enter in subfolders. If checked, then the renaming process will rename recursively in all subfolders that the selected folders contain.
·Element Types to Rename. Element types to be affected for the renaming process: both files and folders, only files or only folders.
·File Types. The file types to rename (only used if Element Types to Rename includes files). There are three options: all files, only files match the filters, or only files does not match the filters. If you choose any of last two options, you must specify the file types.
·Conflict Behaviour. The action to perform if a conflict exists while renaming a file, that is, if a file really exists with the same name in the same folder. The possible options are: prompt, no rename the file, overwrite the existing file, and add a numeric sequence.
·Show Preview. Show a window with the preview before renaming the files. So you can see the final result for all the files before applying the changes. If this field is unchecked, then only a confirm dialog will be displayed to confirm if you wish to continue with the renaming process, but you can not see if the files will be renamed correctly.

Send e-mail Properties

·To. The e-mail recipients. They must be separated with semicolon.
·CC. Another e-mail recipients. They must be separated with semicolon.
·BCC. Hidden e-mail recipients. Unlike the To and CC fields, the e-mail addresses added to BCC are invisible to the recipients of the message.
·Subject. The message subject.
·Body. The message body. The line feeds are indicated with \n.